//
//  SecondViewController.m
//  TakeHer
//
//  Created by Jupiter on 15/6/10.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "SecondViewController.h"
#import "SecondDetailViewController.h"

@interface SecondViewController ()

@property (nonatomic, retain) UILabel *label;
@property (nonatomic, retain) UILabel *labelTwo;
@property (nonatomic, retain) UIImageView *imageView;
@property (nonatomic, retain) UIImageView *imageViewTwo;
@property (nonatomic ,retain) UIButton *buttonOne;
@property (nonatomic ,retain) UIButton *buttonTwo;
@property (nonatomic ,retain) UIButton *buttonThree;
@property (nonatomic ,retain) UIButton *buttonFour;
@property (nonatomic ,retain) UIButton *buttonFive;
@property (nonatomic ,retain) UIButton *buttonSix;

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
        self.imageView = [[UIImageView alloc]initWithFrame:CGRectMake(20, 85, 20, 20)];
        [self.imageView setImage:[UIImage imageNamed:@"iconfont-dingxiang.png"]];
        [self.view addSubview:self.imageView];
        [_imageView release];
        self.label = [[UILabel alloc]initWithFrame:CGRectMake(50, 80, 100, 30)];
        self.label.text = @"热门目的地";
        self.label.textColor = [UIColor orangeColor];
        [self.view addSubview:self.label];
        [_label release];
    
    
        self.buttonOne = [UIButton buttonWithType:UIButtonTypeSystem];
        self.buttonOne.frame = CGRectMake(50, 120, 70, 30);
        [self.buttonOne setTitle:@"anniu" forState:UIControlStateNormal];
        self.buttonOne.backgroundColor = [UIColor lightGrayColor];
        self.buttonOne.alpha = 0.5;
        self.buttonOne.layer.cornerRadius = 16.0;
        [self.buttonOne addTarget:self action:@selector(clickAction:) forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:self.buttonOne];
        [_buttonOne release];
    
        self.buttonTwo = [UIButton buttonWithType:UIButtonTypeSystem];
        self.buttonTwo.frame = CGRectMake(140, 120, 70, 30);
        [self.buttonTwo setTitle:@"anniu" forState:UIControlStateNormal];
        self.buttonTwo.backgroundColor = [UIColor lightGrayColor];
        self.buttonTwo.alpha = 0.5;
        self.buttonTwo.layer.cornerRadius = 16.0;
        [self.buttonTwo addTarget:self action:@selector(clickAction:) forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:self.buttonTwo];
        [_buttonTwo release];
    
        self.buttonThree = [UIButton buttonWithType:UIButtonTypeSystem];
        self.buttonThree.frame = CGRectMake(230, 120, 70, 30);
        [self.buttonThree setTitle:@"anniu" forState:UIControlStateNormal];
        self.buttonThree.backgroundColor = [UIColor lightGrayColor];
        self.buttonThree.alpha = 0.5;
        self.buttonThree.layer.cornerRadius = 16.0;
        [self.buttonThree addTarget:self action:@selector(clickAction:) forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:self.buttonThree];
        [_buttonThree release];
    
        self.buttonFour = [UIButton buttonWithType:UIButtonTypeSystem];
        self.buttonFour.frame = CGRectMake(50, 170, 70, 30);
        [self.buttonFour setTitle:@"anniu" forState:UIControlStateNormal];
        self.buttonFour.backgroundColor = [UIColor lightGrayColor];
        self.buttonFour.alpha = 0.5;
        self.buttonFour.layer.cornerRadius = 16.0;
        [self.buttonFour addTarget:self action:@selector(clickAction:) forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:self.buttonFour];
        [_buttonFour release];
    
        self.buttonFive = [UIButton buttonWithType:UIButtonTypeSystem];
        self.buttonFive.frame = CGRectMake(140, 170, 70, 30);
        [self.buttonFive setTitle:@"anniu" forState:UIControlStateNormal];
        self.buttonFive.backgroundColor = [UIColor lightGrayColor];
        self.buttonFive.alpha = 0.5;
        self.buttonFive.layer.cornerRadius = 16.0;
        [self.buttonFive addTarget:self action:@selector(clickAction:) forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:self.buttonFive];
        [_buttonFive release];
    
        self.buttonSix = [UIButton buttonWithType:UIButtonTypeSystem];
        self.buttonSix.frame = CGRectMake(230, 170, 70, 30);
        [self.buttonSix setTitle:@"anniu" forState:UIControlStateNormal];
        self.buttonSix.backgroundColor = [UIColor lightGrayColor];
        self.buttonSix.alpha = 0.5;
        self.buttonSix.layer.cornerRadius = 16.0;
        [self.buttonSix addTarget:self action:@selector(clickAction:) forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:self.buttonSix];
        [_buttonSix release];

    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    NSString *cellId = @"reuse";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
    if (cell == nil) {
        cell = [[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:cellId] autorelease];

        NSLog(@"创建cell");
    }
    return cell;
}

- (void)clickAction:(UIButton *)ca
{
    NSLog(@"点击按钮");
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
